#include "mythread.h"
#include "dialog.h"
Mythread::Mythread(QObject *parent) : QThread(parent)
{

}

Mythread::~Mythread()
{

}

void Mythread::run()
{
    qDebug() << "传输文件开始";
    QTcpSocket tcp_thread_socket=new QTcpSocket(this);
    tcp_thread_socket.connectToHost("192.168.51.107",6666);
    connect(tcp_thread_socket, SIGNAL(connected()),this,SLOT(ThSendOneSlot()));

}
void Mythread::ThSendOneSlot()
{
     qDebug() << "连接成功！";

     qDebug() << "传输文件结束";
}
